import React, { ReactNode } from "react";
import styles from "../css/card.module.css";

interface ChildProps {
  children: ReactNode; // 最宽泛的子元素类型
  className: string;
}

/**
 * 包裹组件的容器，使用上层组件来控制样式和内容
 * @param param0
 * @returns
 */
const card = ({ children, className }: ChildProps) => {
  return <div className={`${styles.card} ${className}`}>{children}</div>;
};

export default card;
